
FROM wordpress:4.8.1-php7.0
MAINTAINER BHB Inc

COPY ./wp-config.php /usr/src/wordpress/wp-config.php
COPY ./option.php /usr/src/wordpress/wp-includes/option.php

COPY ./ping.php /usr/src/wordpress/ping.php

COPY run.sh /run.sh



ENV	DB_NAME wordpress
ENV	DB_USER root
ENV	DB_HOST 127.0.0.1
ENV	DB_PASSWORD a13660858829
ENV	WP_HOME http://www.kybird.cn

RUN sed -i -e "/exec /i\bash /run.sh" /usr/local/bin/docker-entrypoint.sh

CMD ["apache2-foreground"]